import os,os.path

def trav_walk(pathname):
    for root,dirs,files in os.walk(pathname):
        for file in files:
            fname = os.path.abspath(os.path.join(root,file))
            print(fname)


trav_walk("C:\\Users\\Administrator\\Desktop\\python")